<template>

    <el-button size="default" type="default" @click="backToList()">返回</el-button>

    <el-descriptions column="2">
        <el-descriptions-item label="头像">
            <el-image :src="dataDetail.headUrl"></el-image>
        </el-descriptions-item>

    </el-descriptions>

    <el-descriptions column="3">
        <el-descriptions-item label="用户名：">{{ dataDetail.name }}</el-descriptions-item>
        <el-descriptions-item label="性别：">{{ genderMap.get(dataDetail.userGender) }}</el-descriptions-item>
        <el-descriptions-item label="账号：">{{ dataDetail.account }}</el-descriptions-item>
        <el-descriptions-item label="身份：">{{ identityMap.get(dataDetail.identity) }}</el-descriptions-item>
        <el-descriptions-item label="真实姓名：">{{ dataDetail.realName }}</el-descriptions-item>
        <el-descriptions-item label="身份证号：">{{ dataDetail.identityNum }}</el-descriptions-item>
        <el-descriptions-item label="邮箱：">{{ dataDetail.email }}</el-descriptions-item>
        <el-descriptions-item label="电话：">{{ dataDetail.phone }}</el-descriptions-item>
        <el-descriptions-item label="状态：">{{ statusMap.get(dataDetail.status) }}</el-descriptions-item>
        <el-descriptions-item label="信用分：">{{ dataDetail.credit }}</el-descriptions-item>
        <el-descriptions-item label="注册时间：">{{ dataDetail.gmtCreateTime }}</el-descriptions-item>
    </el-descriptions>


    <el-form-item>
        <el-button type="primary" @click="resetForm()">
            回归正常
        </el-button>
        <el-button type="danger" @click="submitForm()">
            禁用账号
        </el-button>
        <el-button type="danger" @click="submitForm()">
            拉入黑名单
        </el-button>
    </el-form-item>


</template>

<script setup>

import { ref } from 'vue'
import {Plus} from "@element-plus/icons-vue";

const loginUserId = ref("")
const loginUserName = ref("")


const statusMap = ref(new Map([
  ['0', "待审核"],
  ['1', "在售"],
  ['2', "售罄"],
  ['3', "已下架"],
  ['4', "被屏蔽"]
]))

const tradeTypeMap = ref(new Map([
  ['0', "社区货币"],
  ['1', "微信"],
  ['2', "支付宝"],
  ['3', "物物交换"],
  ['4', "免费"],
  ['5', "自定义"]
]))

const typeMap = ref(new Map([
  ['1', "游戏账号"],
  ['2', "游戏装备"],
  ['3', "游戏外设"],
  ['4', "其他内容"]
]))


const reqParam = ref({
    loginUserId: "",
    loginUserName: "",
    creatorId: "",
    creatorName: "",
    gmtCreateTime: "",
    modifierId: "",
    modifierName: "",
    gmtModifyTime: "",
    id: "",
    title: "",
    type: "",
    content: "",
    tagIds: "",
    tagIdList: [],
    fileUrls: "",
    fileUrlList: [],
    status: "",
    backReason: "",
    saveType: ""
})

const tagList = ref([
    {
        id: "1",
        name: "阴阳师",
        type: "1",
        hotCount: 0,
        creatorId: "",
        creatorName: "",
        gmtCreateTime: "",
        modifierId: "",
        modifierName: "",
        gmtModifyTime: ""
    },
    {
        id: "2",
        name: "只狼",
        type: "1",
        hotCount: 0,
        creatorId: "",
        creatorName: "",
        gmtCreateTime: "",
        modifierId: "",
        modifierName: "",
        gmtModifyTime: ""
    },
    {
        id: "3",
        name: "美妆",
        type: "2",
        hotCount: 0,
        creatorId: "",
        creatorName: "",
        gmtCreateTime: "",
        modifierId: "",
        modifierName: "",
        gmtModifyTime: ""
    }
])


</script>


<style scoped>

</style>